/**
 * 邢帅教育
 * <p>
 * 本源代码由数据中心及其作者共同所有，未经版权持有者的事先书面授权，
 * 不得使用、复制、修改、合并、发布、分发和/或销售本源代码的副本。
 *
 * @copyright Copyright (c) 2018. [图片]xsteach.com all rights reserved.
 * @author maikec
 * @date 2018/8/15
 */

/**
 * @author maikec
 * @date 2018/8/15
 */
//Structuring Your Code
package chapter14;
//@SpringBootApplication
//Enable*  @Configuration

//@Component, @Service, @Repository, @Controller @ComponentScan

//If a bean has one constructor, you can omit the @Autowired, as shown in the following example:
//
//@Service
//public class DatabaseAccountService implements AccountService {
//
//    private final RiskAssessor riskAssessor;
//
//    public DatabaseAccountService(RiskAssessor riskAssessor) {
//        this.riskAssessor = riskAssessor;
//    }
//
//    // ...
//
//}


//@SpringBootApplication annotation can be used to enable those three features, that is:
//
//@EnableAutoConfiguration: enable Spring Boot’s auto-configuration mechanism
//@ComponentScan: enable @Component scan on the package where the application is located (see the best practices)
//@Configuration: allow to register extra beans in the context or import additional configuration classes
